package cn.hnh.config;

import cn.hnh.utils.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

import java.util.Date;

@Configuration
@EnableScheduling
public class ScheduleTask {

    @Autowired
    private RedisUtils redisUtils;

    @Scheduled(fixedRate = 100000)
    public void Schedule(){
       // System.out.println(redisUtils.lGetListSize("user"));
    }
}
